<!DOCTYPE html PUBLIC "-//W3C//Dlabel XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dlabel/xhtml1-transitional.dlabel">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />
    <link href="/css/main.css" rel="stylesheet" type="text/css" media="screen"/>
    <script type="text/javascript" src="/js/jquery.min.js" ></script>
    <script type="text/javascript" src="/js/script.js" ></script>
    <title>Cadastrar a Lista</title>
</head>

<body>
<div id="tudo">
<!--*****criando a tabela que vai listar as noticias-->
<div id="topo"><h1>Cadastrar Lista</h1></div>
    <div id="table" align="center">
        <form method="post" action="/cad_presente" id="formCad" >
            <label >Nome:</label>
            <input type="text" id="nome" name="nome">
            <label>Presente:</label>
            <select name="presente" id="presente" >
                <option selected value="">Selecione</option>
                {% for lista in listas %}
                      {% if not lista.nome %}
                      <option value="{{ lista.key.id }}">{{ lista.descricao }}</option>>
                      {% else %}
                       nenhum presente cadastrado
                      {% endif %}
                     {% endfor %}
            </select>
            <br/>
        </form>
        <button type="button" id="enviar">Presentear</button>
       <br/> <a href="/">Voltar</a>
    </div>
</div>
</body>
</html>

